package com.dxy.authresource.config;

import com.dxy.authresource.core.RequestMappingPEndpoint;
import com.dxy.authresource.core.SpringApplicationContext;
import org.springframework.boot.actuate.endpoint.RequestMappingEndpoint;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * Created by cxf_dxy on 2018/10/25.
 */

@Configuration
public class BeansAutoConfigure {

    @Bean
    public RequestMappingEndpoint requestMappingEndpoint() {
        RequestMappingPEndpoint endpoint = new RequestMappingPEndpoint();
        return endpoint;
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

    @Bean
    SpringApplicationContext springApplicationContext(){
        return new SpringApplicationContext();
    }
}
